home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / bin / install-info < prev    next >
Encoding:
Text File  |  2010-10-14  |  1.2 KB  |  37 lines

  1. #!/bin/sh
  2. #
  3. # Wrapper to the GNU's install-info, to be compatible with the one that used to
  4. # be packaged by dpkg on Debian.
  5. #
  6. # written by Norbert Preining, this is not copyrightable ;-)
  7. #
  8. set -e
  9.  
  10. if [ -z "$DPKG_RUNNING_VERSION" ] ; then
  11.   # it seems we are running from outside a maintainer script, so give a
  12.   # warning and call ginstall-info without anything else
  13.   echo "This is not dpkg install-info anymore, but GNU install-info" >&2
  14.   echo "See the man page for ginstall-info for command line arguments" >&2
  15.   ginstall-info "$@"
  16. else 
  17.   # we are running from a maintainer script, simply ignore the call
  18.   # since we have trigger support and people should rebuild their
  19.   # package with new debhelper which does not add calls to install-info
  20.   # Do not complain if called with "--remove" or "--remove-exactly",
  21.   # as these are used in old packages' prerm scripts (see #546165)
  22.   while [ -n "$1" ]; do
  23.     case "$1" in
  24.       --remove|--remove-exactly)
  25.         exit 0
  26.         ;;
  27.       *)
  28.         shift
  29.         ;;
  30.     esac
  31.   done
  32.   echo "Ignoring install-info called from maintainer script" >&2
  33.   echo "The package $DPKG_MAINTSCRIPT_PACKAGE should be rebuilt with new debhelper to get trigger support" >&2
  34. fi
  35.  
  36.  
  37.